/**
 * Place holder for copyright, needs to be replaced before release.
 */
package com.softao.ming.gwt.ui.client;

/**
 * 
 */
public interface IPerspectiveFactory {
	/**
	 * @return the page layout used for this perspective.
	 * <p>
	 * This will be called only once for an instance of perspective, before
	 * the method {@link #createInitialLayout(IPageLayout)} was called.
	 */
	public IPageLayout createPageLayout();
	
	/**
	 * This is called while initializing the widget.
	 * 
	 * @param layout
	 */
	public void createInitialLayout(IPageLayout layout);
}
